import url from './base'
import axios from '../unils/http'

const List = {
    getPlayList() {
        return axios.get(url.getPlayList);
    },
    getNewSong(){
        return axios.get(url.getNewSong);
    },
    getSongUrl(id){
        return axios.post(url.getSongUrl+'?id='+id);
    },
    getTopListDetail(){
        return axios.get(url.getTopListDetail);
    },
    getLRC(id){
        return axios.post(url.getLRC+'?id='+id);
    },
    phoneLogin(phone,password){
        return axios.post(url.phoneLogin+'?phone='+phone+'&password='+password);
    },
    getSearch(keyword){
        return axios.get(url.getSearch+'?keywords='+keyword);
    },
    getPlayListDetail(id){
        return axios.get(url.getPlayListDetail+'?id='+id);
    },
    getSubCount(){
        return axios.get(url.getSubCount);
    },
    getUserPlayList(id){
        return axios.get(url.getUserPlayList+'?uid='+id);
    },
    getComment(id){
        return axios.get(url.getComment+'?id='+id);
    }
}


export default List;
